<div class="bjui-pageContent">
    <div class="bjui-pageHeader" style="background-color:#fefefe; border-bottom:none;">
        <form data-toggle="ajaxsearch" data-options="{searchDatagrid:$.CurrentNavtab.find('#pro-pro-lists')}">
            <fieldset>
                <legend style="font-weight:normal;">搜索：</legend>
                <div style="margin:0; padding:1px 5px 5px;">

                    <span>名称：</span>
                    <input type="text" name="title" class="form-control" size="30">

                    <div class="btn-group">
                        <button type="submit" class="btn-green" data-icon="search">开始搜索</button>
                        <button type="reset" class="btn-orange" data-icon="times">重置</button>
                    </div>
                </div>
            </fieldset>
        </form>
    </div>
    <table class="table table-bordered" id="pro-pro-lists" data-toggle="datagrid" data-options="{
        tableWidth: '100%',
        height: '100%',
        gridTitle : '半成品列表',
        showToolbar: false,
        toolbarItem: 'add',
        local: 'local',
        dataUrl: '/admin/pro-pro/lists',
        linenumberAll: false,
        showLinenumber: false,
        showCheckboxcol: false,
        {{--showEditbtnscol: '操作',--}}
        filterThead: false,
        {{--editUrl: '/admin/pro/edit',--}}
        {{--editCallback:editCallback,--}}
        {{--delUrl:'/admin/pro/delete',--}}
        {{--delPK:'id',--}}
        {{--delConfirm: true,--}}

        {{--exportOption:{type:'file', options:{url:'admin/export/process-field',type:'post',data: {_token : '{{ csrf_token() }}'}}}--}}
    }">
        <thead>
        <tr>
            <th data-options="{name:'id',width:50,align:'center',add:false,edit:false}">编号</th>
            <th data-options="{name:'title',add:false,edit:false,align:'center'}">名称</th>
            <th data-options="{name:'number',align:'center'}">当前数量</th>
            <th data-options="{name:'in_number',add:false,edit:false,align:'center'}">入库数量</th>
            <th data-options="{name:'out_number',add:false,edit:false,align:'center'}">出库数量</th>
            <th data-options="{align:'center',width:300,render:process_product_manage}">操作</th>
        </tr>
        </thead>
    </table>
</div>>
<script type="text/javascript">
    function process_product_manage(value, data){
        var html = '<button type="button" class="btn btn-green" data-toggle="navtab" data-options="{id:\'pro-pro-code-set-lists-navtab\',fresh:true, url:\'/admin/pro-pro/code-set-lists\', title:\'打码设置\',width:800,height:700, data:{process_product_id:' + data.id + '}}"><i class="fa fa-edit"></i>打码设置</button>';
        return html;
    }

    function afterSave(m,n)
    {
        var html = m.find('.delete').hide();
    }

</script>